wayland: Make display closing work
authorMatthias Clasen <mclasen@redhat.com>
Fri, 28 Aug 2015 18:16:21 +0000 (14:16 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 28 Aug 2015 20:15:26 +0000 (16:15 -0400)
commitea66300cf94f01aa0983579b49447fc15b340f83
tree516e2b3df57b0d9a895c1f2c6895675414ef2ac7
parent0dc6726f021cc28413943cf0686063c4cbbe1d27
wayland: Make display closing work

The code in _gdk_wayland_window_dispose was not safe against
being called twice - it would call g_hash_table_destroy twice
on the known_globals hash table, the second time operating on
freed memory. It was also leaking the list of async_roundtrips.

After fixing both of these issues, the displayclose testcase
now works on Wayland.
gdk/wayland/gdkdisplay-wayland.c